<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">



<html:form action="/View/updateid.do?action=updateId">
	<head>

	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

	<title>Employee</title>
	
	<script type="text/javascript">

	function submitid(){

	var empid = document.getElementById("empid").value;

	if(empid == ""){
		alert("Please enter the ID");
		return;
	}	
	
			
	document.forms[0].submit();
	}
	
	</script>
	</head>

	<body>



	
	
	<jsp:include page="menu.jsp"></jsp:include>
	<td align="center">
	<h4 style="color: red"><bean:write name="updateEmployeeIDForm" property="error" /></h4>
	Enter Employee Id here : <html:text name="updateEmployeeIDForm" property="empid" styleId="empid"/>
	
	<input type="button" value="Submit" onclick="submitid()" />
	
	</td>
	</tr>
	
	</table>
	
	</body>
</html:form>